<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<form action="/send_form/" method="post">
    {% csrf_token %}
    <input type="text" name="username">
    <input type="text" name="password">
    <input type="submit" value="提交">

</form>
<form action="/send_form2/" method="get">
    <input type="text" name="username">
    <input type="text" name="password">
    <input type="submit" value="提交">

</form>
<div>
    <input id="value" type="text" value="1111">
    <input type="button" onclick="send_value()" value="11">
</div>

{{ u }}
{% for item in d %}
    {% item %}
{% endfor %}
{#<script>#}
{#    function send_value() {#}
{#        var value_sended = document.getElementById("value").value#}
{#        $.ajax({#}
{#            url:/send_data/,#}
{#            type:'get',#}
{#            data:{#}
{#                useranme: value_sended,#}
{#                csrfmiddlewaretoken: '{{ csrf_token }}'#}
{##}
{#            }#}
{#            success:function (e) {#}
{#                #}
{#            }#}
{##}
{#        })#}
{##}
{#    }#}
{#</script>#}

</body>
</html>